<template>
  <div id="app">
		<common-nav></common-nav>
    <router-view/>
    <transition name="fade">
			<login v-if="loginPopup"></login>
    </transition>
		<transition name="fade">
			<download-app v-if="downloadPopup"/>
		</transition>
		<common-footer></common-footer>
  </div>
</template>

<script>
import Login from '@/view/Login/index';
import DownloadApp from '@/components/DownloadApp/index';
import CommonNav from '@/components/CommonNav/index';
import CommonFooter from '@/components/CommonNav/CommonFooter';
import { mapState } from 'vuex';
export default {
	components:{
		Login,
		DownloadApp,
		CommonNav,
		CommonFooter,
	},
	created(){
		this.getDoctorList();
	},
	methods:{
		getDoctorList(){
			this.Server.getIndexData().then(function(res){
				console.log(res,'d');
			})
		}
	},
	computed:mapState(['loginPopup','downloadPopup']),
  name: 'App'
}
</script>
// 公共css
<style src='../static/css/common.less' lang="less"></style>
<style>
#app {
  font-family: "microsoft yahei",'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
}
.fade-enter-active, .fade-leave-active{
	transition: opacity .5s;
}
.fade-enter, .fade-leave-to{
	opacity: 0;
}
</style>
